<template>
  <div class="index-parent" ref="parentContainer">
    <!--&lt;!&ndash;代理商户数量统计&ndash;&gt;-->
    <!--<div class="agent_seller_summary">-->
      <!--<h4 class="agent_seller_summary-title">代理商户数量统计:</h4>-->
      <!--<p class="agent_seller_summary-item">商家总数:{{sellerSummaryData.total_sellers}}</p>-->
      <!--<p class="agent_seller_summary-item">营业中的商家总数:{{sellerSummaryData.total_sellers_on}}</p>-->
    <!--</div>-->

  </div>
</template>

<script>
  import CPageBase from "../fragment/CPageBase"
  import CRootBase from "../fragment/CRootBase"
  export default {
    data() {
      return {
        pathArr: [
          {path: "/", name: "首页"},
        ],
        sellerSummaryData: "",//dialing商家统计信息
      }
    },
    mixins: [CPageBase, CRootBase],
    components: {},
    mounted() {
    },
    activated() {
      this.initCurrentPath();
      this.requestAgentSellerSummary();
    },
    deactivated() {
      this.$destroy(true);
    },
    methods: {
      //初始化面包屑路径
      initCurrentPath() {
        this.$store.commit('changeCurrentLocation', this.pathArr);
      },

      //获取统计信息
      requestAgentSellerSummary(){
        let parameter = new URLSearchParams();
        parameter.append("action", "agent_seller_summary");
        let that = this;
        that.loading = true;
        this.$http.requestAuthData(that, parameter, function (data) {
          that.sellerSummaryData = data;
        });
      },
    }
  }
</script>

<style lang="scss" scoped="" type="text/scss" src="../../assets/style/index.scss">
</style>

